package com.siki.pojo.commonEntity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;


import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
 * @Author Siki
 * @Date 2020/6/21
 */
@Getter
@Setter
@NoArgsConstructor
@ApiModel("个人用户关联岗位 - 投诉 - 实体")
@Entity
@Table(name = "general_user_talent_position")
@TableName(value = "general_user_talent_position",resultMap = "com.siki.mapper.CommonMap.GeneralPositionResult")
public class GeneralUserTalentPosition {
    //自增
    @TableId(type = IdType.ASSIGN_ID)
    @Id
    protected Long id;

    @JoinColumn(name="gu_id")
    @ManyToOne
            @TableField(exist = false)
    GeneralUser generalUser;

    @ManyToOne
    @JoinColumn(name="tp_id")
    @TableField(exist = false)
    TalentPosition talentPosition;

    @ApiModelProperty("投诉原因")
    String reason;
}
